home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10212 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  875 b 

  1. Path: Inter.NL.net!usenet
  2. From: Auke.Reitsma@net.HCC.nl (Auke Reitsma)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to read a STRING from file?
  5. Date: Fri, 15 Mar 1996 23:03:54 GMT
  6. Organization: Inter.NL.net, The Internet Provider in The Netherlands.
  7. Message-ID: <4ictau$736@altrade.nijmegen.inter.nl.net>
  8. References: <s3032089.13.314913E2@sparc13.ncu.edu.tw>
  9. Reply-To: Auke.Reitsma@net.HCC.nl
  10. NNTP-Posting-Host: rt99-14.rotterdam.nl.net
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. s3032089@sparc13.ncu.edu.tw (Alexander PeaceLand) wrote:
  14.  
  15. > How could I read a real string from the file?
  16. > I used to read string by fscanf(), but it seems not work when the string 
  17. > I want is like "This is a book" that with space within it.
  18. > Is there any function or easy way to read sentence from file?
  19.  
  20. RTFM on fscanf() ... or use fgets() ...
  21.  
  22. Greetings from Delft, The Netherlands.
  23.  
  24. Auke Reitsma
  25.  
  26.